<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script>
				var i=20;
			    function first( ){
			        var i=5;
			        for(var j=0;j<i;j++){
			            document.write("&nbsp;&nbsp;&nbsp;&nbsp;"+j);
			        }
			    }
			    function second( ){
			        var t=prompt("输入一个数","")
			        if(t>i)
			            document.write(t);
			        else
			            document.write(i);
			        first( );
			    }
first();
second();
		</script>
	</head>
	<body onload="alert('页面加载完成')">
		<div id="e" >
			
		</div>
	</body>
</html>
